$.fn.dicselect = function(options){
	if(options.initvalue!=null&&options.initvalue!=''){
		if(options.initval!=null&&options.initval!=''){
    		this.append("<option value='"+options.initval+"'>"+options.initvalue+"</option>");  
    	}else{
    		this.append("<option value=''>"+options.initvalue+"</option>");  
    	}
	}
	var dic;
    if(options.dic!=null&&options.dic!=''){
    	dic = eval('('+options.dic+")");
    }
    if(options.json!=null&&options.json!=''){
    	dic = options.json;
    }
    for(key in dic){
        if(key == options.defaultvalue){
             this.append("<option value='"+key+"' selected>"+dic[key]+"</option>");
        }else{
            this.append("<option value='"+key+"'>"+dic[key]+"</option>");
        }
    }
};
$.fn.dicvalue = function(options){
    var	dic = eval('('+options.dic+")");
    if(options.prop != undefined && options.prop!=null){
    	this.attr(options.prop,dic[options.value]);
    }else{
    	this.html(dic[options.value]);
    }
};